<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="javascript" type="text/javascript" src="http://manager.zyttb.com/Public/Manage/Js/jquery.js"></script>
<script src="http://manager.zyttb.com/Public/Manage/Js/frame.js" language="javascript" type="text/javascript"></script>
<link href="http://manager.zyttb.com/Public/Manage/Css/style.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script src="http://manager.zyttb.com/Public/Manage/Js/DD_belatedPNG.js" language="javascript" type="text/javascript"></script>
<script>
  DD_belatedPNG.fix('.nav ul li a,.top_link ul li,background');   /* string argument can be any CSS selector */
</script>
<![endif]-->
</head>
<body class="showmenu">
<link type="text/css" rel="stylesheet" href="http://manager.zyttb.com/Public/Manage/Css/jquery-tag.css" />
<script src="/Public/Manage/js/jquery.form.min.js"></script>
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31">
			<div class="titlebt">
				通币赠送
			</div>
		</td>
      </tr>
    </table>

<div class="main">

	<div class="form">
		<form method='post' id="form_do" name="form_do" action="<?php echo U('Finance/TbTransfer');?>">
			<dl>
				<dt> <span class="red">* </span>转出帐号：</dt>
				<dd>
					<span type="text" class="inp_one" style="border: none;">zytgf</span>
				</dd>
			</dl>
			<dl>
				<dt> <span class="red">* </span>转入帐号：</dt>
				<dd>
					<input type="text" name="name" class="inp_one" id="name" placeholder="请填写转入帐号" />
				</dd>
			</dl>
			<dl>
				<dt> <span class="red">* </span>赠送金额：</dt>
				<dd>
					<input type="text" name="number" class="inp_one" id="number" placeholder="请填写转账金额小数不能多于2位" />
				</dd>
			</dl>
			<dl>
				<dt>备注：</dt>
				<dd>
					<textarea name="remark" cols="50" rows="5" placeholder="这里可以输入备注信息"></textarea>
				</dd>
			</dl>
			<div class="form_b">
				<input type="hidden" name="hash" value="<?php echo ($hash); ?>" />
				<input type="submit" class="btn_blue" id="releaseBtn" value="确认赠送">
			</div>
	   </form>
	</div>
</div>

<script type="text/javascript" src="http://manager.zyttb.com/Public/Manage/Js/jquery-tag-select.js"></script>
<script type="text/javascript">
	$('#releaseBtn').click(function(){
		var number = parseFloat($.trim($('#number').val()));
		if(! window.confirm('您确认要赠送'+number+'个通币吗？')){
			return false;
		}
	});
	jQuery.validator.addMethod("ckprice",function(value,element){var price=/^\d+$|^\d+\.\d{1,2}$/;return this.optional(element)||(price.test(value))},$.validator.format("赠送金额小数不得多于2位"));$("#form_do").validate({rules:{name:{required:true,remote:{type:'POST',url:"<?php echo U('Finance/TbTransfer_checkname');?>",data:{user_name:function(){return $("#name").val()}}}},number:{required:true,min:0,ckprice:true}},messages:{name:{required:"请输入赠送帐号",remote:"赠送帐号不存在"},number:{required:"请输入赠送金额",min:"赠送金额不能小于0"}}})
</script>
</body>
</html>